import  axios from '../utils/http'

export function getslideShow(num) {
            return axios.get(`/api//weChat/applet/course/banner/list?number=${num}`)
}
export function getCourse(type,num,size) {
    let obj=new URLSearchParams();
    obj.append('type', type)
    obj.append('pageNum', num)
    obj.append('pageSize', size)
    return axios.post(`/api//weChat/applet/course/list/type`, obj)
}
export function getFoorlink(dictType) {
    //表单元素
    let obj=new URLSearchParams();
    obj.append('dictType',dictType);
    return axios.post(`/api/system/dict/data/list/open`,obj)
}
export function getCourselist() {
    return axios.post(`/api/weChat/applet/subject/list`,{enable:1})
}